package com.rou.im.framework.core.log;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-05-13 22:50
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

public class E {
    static public String formatException(Exception e) {
        String errCode = e.toString() + "\n";
        for (StackTraceElement err : e.getStackTrace()) {
            errCode += err + "\n";
        }
        return errCode;
    }
    static public String formatThrowable(Throwable t) {
        String errCode = t.toString() + "\n";
        for (StackTraceElement err : t.getStackTrace()) {
            errCode += err + "\n";
        }
        return errCode;
    }


}
